
declare -A ubuntu_version
ubuntu_version=( [14]='trusty' [16]='xenial' [18]='bionic' [20]='focal' )

echo "deb http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]} main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]} main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ ${ubuntu_version[${UBUNTU}]}-backports main restricted universe multiverse" > /etc/apt/sources.list


bash apt_install.sh